using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;

namespace CSPimNavigator.NET
{
    public partial class NotificationsDlg : Form
    {
        public NotificationsDlg()
        {
            InitializeComponent();
        }

        public void InsertNotification(string strNotification)
        {
            string newItemText = DateTime.Now.ToString() + " " + strNotification;
            ListBoxNotifications.Items.Add(newItemText);
        }

        private void ButtonClear_Click(object sender, EventArgs e)
        {
            ListBoxNotifications.Items.Clear();
        }

        private void ButtonClose_Click(object sender, EventArgs e)
        {
            Close(); 
        }
    }
}